package org.holynite.fieldmanage.managed.model

import javax.faces.bean.ManagedBean
import javax.faces.bean.ViewScoped

/**
 * Created by midnite on 15/1/31.
 */
@ManagedBean
@ViewScoped
class AdministratorFormBean implements Serializable {
    Boolean addMode, adminDisabled
    String searchKeyword, adminWorkId, adminName, adminPassword, selectedAdmin, selectedRole

    AdministratorFormBean() {
        addMode = false
    }

    void clearForm() {
        adminWorkId = ""
        adminName = ""
        selectedAdmin = ""
        adminDisabled = false
    }

    void clearSearch() {
        searchKeyword = ""
    }
}
